cmake_minimum_required(VERSION 2.8)
include_directories ("${PROJECT_SOURCE_DIR}/lib")
add_library(iotfdevmgt SHARED devicemanagementclient.c)
add_library(iotfgwayclient SHARED gatewayclient.c)
add_library(iotfclient SHARED iotfclient.c)

TARGET_LINK_LIBRARIES (iotfdevmgt iotfclient cJSON mqttclient mqttlinux mqttformat  mqttpacket mqttdespublish mqttconnectclient mqttsubscribeclient mqttserpublish mqttconnectserver mqttsubscribeserver mqttunsubscribeserver mqttunsubscribeclient)
TARGET_LINK_LIBRARIES (iotfgwayclient mqttclient mqttlinux mqttformat  mqttpacket mqttdespublish mqttconnectclient mqttsubscribeclient mqttserpublish mqttconnectserver mqttsubscribeserver mqttunsubscribeserver mqttunsubscribeclient)
TARGET_LINK_LIBRARIES (iotfclient mqttclient mqttlinux mqttformat  mqttpacket mqttdespublish mqttconnectclient mqttsubscribeclient mqttserpublish mqttconnectserver mqttsubscribeserver mqttunsubscribeserver mqttunsubscribeclient)
